﻿<%include file="header.tpl"/>
<div class="main">
		<div class="left">
				<div class="article">
					<div class="articletitle">
						<h2><a href="/blog/${dairy.year}/${dairy.month}/${dairy.day}/${dairy.url}.html">${dairy.title}</a></h2>
					</div>
					<div class="belowtitle">
						<span>${dairy.time.strftime('%Y-%m-%d %H:%M:%S')}</span>
						<span>${dairy.readtimes}次阅读</span>
						<span style="float:right; margin-top:5px;">${dairy.comments}条评论</span>
					</div>
					<div class="articlecontext">
						${dairy.content}
					</div>
					
					<div class="category">
					<span style="color:#000">分类：</span>
					<span><a href="/blog/category/${dairy.category}">${dairy.category}</a></span>
					</div>
					<div class="tags">
					<span style="color:#000">标签：</span>
					%for tag in dairy.tag:
					<span><a href="/blog/tag/${tag}">${tag}</a></span>
					%endfor
					</div>
				</div>
				<div class="comments">
					<div class="belowtitle">
						<span>${dairy.comments}条评论</span>
					</div>
					<div class="commentslist">
						%for comment in comment_list:
						<div class="commentcontext">
							<div class="headpic">
								<img src="${comment.avatarurl}" width="60px" height="60px" alt="" />
							</div>
							<div class="comtitle">
								<span><a href="${comment.webpage}">${comment.author}</a></span>
								<span>发表于：${comment.time.strftime('%Y-%m-%d %H:%M:%S')}</span>
							</div>
							<div class="comcont">
								<p>${comment.content.replace('\n', '<br />')}</p>
							</div>
						</div>
						%endfor
					</div>
					
				</div>
				<form method="post" action="">
					<div class="posts">
						<div class="leftpost">
							<p>昵称：<input name="author" type="text" /></p>
							<p>E-mail：<input name="email" type="text" /></p>
							<p>网站：<input name="webpage" type="text" value="http://" /></p>
						</div>
						<div class="rightpost">
							<textarea name="repcontent" style="width: 430px; height: 100px"></textarea>
							<br />
							<input name="Submitrep" type="submit" value="提交评论" />
						</div>
					</div>
				</form>
				
			</div>
<%include file="sidebar.tpl"/>			
</div>
<%include file="footer.tpl"/>